// components/ad-video/index.ts
Component({
  properties: {
    adUnitId: {
      type: String,
      value: 'adunit-60b96d9bdf1adf75' // 默认值可写死
    },
    adTheme: {
      type: String,
      value: 'white' // 可选：white / black
    }
  },
  methods: {
    adload() {
      this.triggerEvent('adload');
    },
    adclose() {
      this.triggerEvent('adclose');
    },
    adError(e) {
      this.triggerEvent('aderror', e.detail);
    }
  }
});